package me.buick.util.jmeter.snmpprocessvisualizers;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import me.buick.util.jmeter.snmpprocess.snmpmgmt.SNMPProcessSampleResult;
import me.buick.util.snmp.core.pojo.DiskIOPojo;
import me.buick.util.snmp.core.pojo.DiskUsagePojo;
import me.buick.util.snmp.core.pojo.NetworkInfoPojo;
import me.buick.util.snmp.core.pojo.ProcessInfoPojo;

import org.apache.jmeter.visualizers.MonitorModel;

public class SNMPProcessMonitorModel extends MonitorModel {
	private SNMPProcessSampleResult sample;
	
	public SNMPProcessMonitorModel(SNMPProcessSampleResult sample) {
		this.sample = sample;
	}
	
	public long getTimestamp() {
		return sample.getTimeStamp();
	}
	
	public String getServerType(){
		return sample.getServerType();
	}
	
	public SNMPProcessSampleResult getOriginalSampleResult(){
		return this.sample;
	}
	
	public Map<Integer, ProcessInfoPojo> getProcessPerfPojos(){
		return sample.getProcessPojoMap();
	}
	
	public long getTotalMemUsageBytes(){
		return sample.getTotalMemUsage();
	}
	
	public double getTotalCPUUsagePerc(){
		return sample.getTotalCPUPerc();
	}
	
}
